package cn.teleware.api.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author : hongsw
 * @date : 2020-11-12-14:32
 * @descriptions :
 */

@Documented
@Constraint(validatedBy = WeakPasswordValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface WeakPassword {
    String message() default "请使用更加强壮的密码";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
